package day04;

public class ForDemo {
    public static void main(String[] args) {
        for(int i = 1;i<=9;i++){
            System.out.println(i+"*9="+(i*9));
        }
        System.out.println("------------------------");
        for (int i =1;i<=9;i+=2){
            System.out.println(i+"*9="+(i*9));
        }
        System.out.println("------------------------");
        for (int i=9;i>=1;i--){
            System.out.println(i+"*9="+(i*9));
        }
        System.out.println("------------------------");
        for (int i =9;i>=1;i-=2){
            System.out.println(i+"*9="+(i*9));
        }
        System.out.println("------------------------");

        int sum=0;
        for(int i=1;i<=100;i++){
            sum+=i;
        }
        System.out.println("1累加到100的和为："+sum);
    }


}
